<div class="panel panel-default">
    <div class="panel-body panel-body-nopadding">

        <form class="form-horizontal form-bordered" method="post">

            <div class="form-group">
                <label class="col-sm-3 control-label">友链标识</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="友链标识" class="form-control" name="code" value="{$advertiseInfo.code}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">广告代码</label>
                <div class="col-sm-6">
                    <textarea name="html" placeholder="广告代码" class="form-control" rows="3">{$advertiseInfo.html}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">投放天数</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="多少天之后过期，0表示永不过期" class="form-control" name="expireday" value="">
                    <span class="help-block username" style="margin-bottom: 0px;">此广告
                        <empty name="advertiseInfo.expiretime">
                        <font color="red">永不过期</font>
                        <else/>
                        <font color="green">{$advertiseInfo.expiretime|dateFormat}</font> 到期
                        </empty>，如过需要修改则填入过期天数
                    </span>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-6">
                    <div class="radio">
                        <label><input type="radio" name="status" value="1" <eq name="advertiseInfo.status" value="1">checked</eq>> 启用</label> &nbsp;&nbsp;&nbsp;
                        <label><input type="radio" name="status" value="0" <eq name="advertiseInfo.status" value="0">checked</eq>> 禁用</label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-2">
                    <input type="hidden" name="id" value="{$advertiseInfo.id}" >
                    <input type="submit" class="btn btn-primary" value=" 提 交 " > &nbsp;
                    <a href="{:U('/link')}" class="btn btn-default"> 列 表 </a>
                </div>
            </div>
        </form>

    </div>
</div>
